import {
    CHANGE_INPUT_VALUE,
    ADD_TODO_ITEM,
    DELETE_TODO_ITEM
} from './actionTypes'

export const getInputChangeAction = (value) => {
    return {
        type: CHANGE_INPUT_VALUE,
        value
    } 
}

export const getIAddItemAction = () => {
    return {
        type: ADD_TODO_ITEM 
    } 
}

export const getIDeleteItemAction = (index) => {
    return {
        type: DELETE_TODO_ITEM,
        index
    } 
}